// @ts-ignore
/* eslint-disable */
import request from '@/utils/request';

/** 批量添加题目到题库 POST /api/questionBankMap/addBatch */
export async function addQuestionToBankBatchUsingPost(
  body: API.QuestionBankMapAddBatchDto,
  options?: { [key: string]: any },
) {
  return request<API.ResponseResultBoolean_>('/api/questionBankMap/addBatch', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 批量删除题目题库关联 POST /api/questionBankMap/removeBatch */
export async function removeQuestionBankMapBatchUsingPost(
  body: API.QuestionBankMapRemoveBatchDto,
  options?: { [key: string]: any },
) {
  return request<API.ResponseResultBoolean_>('/api/questionBankMap/removeBatch', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
